<script setup>
import { ref } from 'vue'
import ChildComp from './components/childcomp.vue'

const isShow = ref(true)
</script>

<template>
  <ChildComp v-if="isShow" />
  <button @click="isShow = false">干掉他</button>
</template>
